﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace ImageEditor.DataManagement
{
    class HTTPManager
    {

        public HTTPManager() { }

        public static String GetPageSource(String URL)
        {
            HttpWebRequest webreq = (HttpWebRequest)WebRequest.Create(URL);
            HttpWebResponse webresp = (HttpWebResponse)webreq.GetResponse();
            StreamReader strm = new StreamReader(webresp.GetResponseStream(), Encoding.UTF8);
            return strm.ReadToEnd();
        }
    }
}
